import { Component } from 'react';
import classNames from 'classnames';
import styles from './PdfModal.less';
import { RadioGroup,Radio } from '@blueprintjs/core';
import Modal from '../../../components/modals/BaseModal';
import { connect } from 'dva';
import { updateState } from '../../../models/global';

export default class AttrSetting extends Component {
	constructor(props) {
	    super(props);
      this.state = {
          pdf: true
      }
	}

	render() {
		const  { title, isOpen, className, handleClose,pdfUrl } = this.props;
    const { pdf } = this.state
		return (
			<Modal className={classNames(styles.pdf)}
		        icon="book"
		        confirm = {false}
		        title = {title || '属性配置'}
		        isOpen = {isOpen}
		        handleClose = {handleClose}
		        >
            {pdfUrl ? <iframe src={pdfUrl} width="100%" height="100%" scroll="no"></iframe> : "没有没找到文件"}

		    </Modal>
		)
	}
}
